package net.stogi.common.security.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class PrincipalData implements Serializable {

	private static final long serialVersionUID = -2420199453419898671L;

	private String password;

	private List<String> roles;

	private String username;

	public PrincipalData() {
		roles = new ArrayList<String>();
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @return the authorities
	 */
	public List<String> getRoles() {
		return roles;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @param authorities
	 *            the authorities to set
	 */
	public void setRoles(List<String> roles) {
		this.roles = roles;
	}

	/**
	 * @param username
	 *            the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}
}
